package br.ufc.great.ad.DAO;

import br.ufc.great.ad.Model.DB;
import org.hibernate.Session;
import org.hibernate.Transaction;
import br.ufc.great.ad.Model.Metric;
/**
 *
 * @author great
 */
public class MetricDAO {
    DB db = new DB();
    Session session = db.getSession();
    
    public void addMetric(Metric metric) {
        Transaction tx = (Transaction) session.beginTransaction();
        session.save(metric);
        tx.commit();
    }
}
